package dp.gr03.payroll.methodTransactions;

import dp.gr03.payroll.generalTransactions.ChangeEmployeeTransaction;
import dp.gr03.payroll.payrollDomain.Employee;
import dp.gr03.payroll.payrollDomain.PaymentMethod;

public abstract class ChangeMethodTransaction extends ChangeEmployeeTransaction
{

    public ChangeMethodTransaction(int empId)
    {
        super(empId);
    }

    @Override
    public void change(Employee e)
    {
        e.setPaymentMethod(getPaymentMethod());
    }
    
    public abstract PaymentMethod getPaymentMethod();

}
